package com.four.project.service;

import com.four.project.pojo.User;
import com.four.project.vo.UserReq;
import com.four.project.vo.UserResp;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;

public interface UserService {
    //查询所有
    PageInfo selectAll(Integer page, Integer size);
    //根据id查询
    User selectById(Integer id);
    //增加
    int addOne(User user);
    //根据id删除
    int deleteById(Integer id);
    //修改
    int updateOne(User user);



    //发送验证码
    void sendMail(String email, HttpServletRequest request);
    //登录
    int login(UserReq userReq,HttpServletRequest request);

    //登录验证方法
    User findUserByLogin(String email);


}
